package hello1;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;


public class HelloClient {
	
	public HelloClient(){
	
	}

	public static void main(String[] args){
		
		Resource res = new ClassPathResource("hello1.xml");
		BeanFactory factory=new XmlBeanFactory(res);
		
		HelloWorld bean1=(HelloWorld)factory.getBean("hello");
		String str = bean1.sayHello("I'm missing you");
		//String str="ABC";
		System.out.println(str);
		
		
	}
}
